// console.log(document.documentElement);
// document.write('Hello World！')

// console.log(document.body);
let bianliang = document.querySelectorAll('.item')
console.log(bianliang);
let firstButton = document.querySelector('.item')

firstButton.addEventListener('click', () => {
    console.log('item1被点击了');
    firstButton.classList.toggle('class2')

})


let Buttons = document.querySelectorAll('.item')

Buttons.forEach(item => {
    item.addEventListener('click', () => {
        console.log('item被点击了');

    })
})

firstButton.innerHTML = '1123123'


firstButton.style.backgroundColor = 'red'

// firstButton.classList.add('123123')

// firstButton.classList.remove('item')

// firstButton.classList.toggle('item')




// console.log(firstButton.classList.contains('123123'));


// for (const key in object) {
//     if (Object.prototype.hasOwnProperty.call(object, key)) {
//         const element = object[key];

//     }
// }